package com.ship.common.core.base;


import com.ship.common.core.mapping.Label;

import java.lang.reflect.Field;

/**
 * @author tangshixuan
 * @date 2023-8-30
 */
public class BaseController {

    protected AuthUserInfo currentUser() {
        return null;
    }

    public String getFieldDateFormat(Field field){
        Label label = field.getAnnotation(Label.class);
        if(label != null){
            String format = label.format();
            return format;
        }
        return null;
    }
}
